package com.cn.wanxi.dao;

import com.cn.wanxi.model.NewsModel;
import com.cn.wanxi.model.PageModel;

import java.util.List;

/**
 * Administrator
 */
public interface NewsDao {
    Integer add(NewsModel newsModel);
    Integer update(NewsModel newsModel);
    Integer delete(NewsModel newsModel);
    NewsModel findById(Integer id);
    List<NewsModel> findAll();
    List<NewsModel> findPage(PageModel pageModel);
    Integer findCount(PageModel pageModel);

    /**
     * 模糊查询
     * @param require
     * @return
     */
    List<NewsModel> findNews(NewsModel newsModel);
}
